import http from "@/utils/request";
import model from "@/config/model";
export default {
  login: {
    url: `${model.API_URL}/auth/v1.0/login`,
    name: "登录",
    post: async function (data) {
      return await http.post(this.url, data);
    },
  },
  getBasedata: {
    url: `${model.API_URL}/auth/v1.0/get-base-data/`,
    name: "获取基础数据",
    get: async function (data) {
      return await http.get(this.url + data);
    },
  },
  token: {
    url: `${model.API_URL}/auth/v1.0/token/`,
    name: "获取token",
    get: async function (data) {
      return await http.get(this.url + data);
    },
  },
  logout: {
    url: `${model.API_URL}/auth/v1.0/logout`,
    name: "登出",
    get: async function () {
      return await http.get(this.url);
    },
  },
  test: {
    url: `${model.API_URL}/auth/v1.0/test1`,
    name: "测试",
    get: async function () {
      return await http.get(this.url);
    },
  },
};
